package com.jinzhi.jzweb.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.base.BaseDao;
import com.jinzhi.jzweb.domain.CertificateNewsDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * <pre>
 * 证书信息
 * </pre>
 * <small> 2020-02-24 21:00:12 | lance</small>
 */
public interface CertificateNewsDao extends BaseDao<CertificateNewsDO> {

    List<Map<String, Object>> dyGetUserList(Page<Map<String,Object>> page);

    List<CertificateNewsDO> dyGetUserLists(Page<CertificateNewsDO> page);

    List<CertificateNewsDO> dyGetUserListsFormal(Page<CertificateNewsDO> page);

    List<Map<Object,Object>> selByNotGrade();
    List<Map<Object,Object>> selByProfileId();
    List<Map<Object,Object>> selByProfile();
    List<Map<Object,Object>> selByNewId();

    Map<Object,Object> selByNewName(@Param("newsId") Long newsId);
    //查询全部数据XZY
    List<CertificateNewsDO> certificateNewListX();
    //修改成阿里云OSS路径
    int updateCertificateX(@Param("certificateImg") String certificateImg,@Param("id") String id);
}
